package com.jiulong.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TActivityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public TActivityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andAccountrangeIsNull() {
            addCriterion("accountRange is null");
            return (Criteria) this;
        }

        public Criteria andAccountrangeIsNotNull() {
            addCriterion("accountRange is not null");
            return (Criteria) this;
        }

        public Criteria andAccountrangeEqualTo(String value) {
            addCriterion("accountRange =", value, "accountrange");
            return (Criteria) this;
        }

        public Criteria andAccountrangeNotEqualTo(String value) {
            addCriterion("accountRange <>", value, "accountrange");
            return (Criteria) this;
        }

        public Criteria andAccountrangeGreaterThan(String value) {
            addCriterion("accountRange >", value, "accountrange");
            return (Criteria) this;
        }

        public Criteria andAccountrangeGreaterThanOrEqualTo(String value) {
            addCriterion("accountRange >=", value, "accountrange");
            return (Criteria) this;
        }

        public Criteria andAccountrangeLessThan(String value) {
            addCriterion("accountRange <", value, "accountrange");
            return (Criteria) this;
        }

        public Criteria andAccountrangeLessThanOrEqualTo(String value) {
            addCriterion("accountRange <=", value, "accountrange");
            return (Criteria) this;
        }

        public Criteria andAccountrangeLike(String value) {
            addCriterion("accountRange like", value, "accountrange");
            return (Criteria) this;
        }

        public Criteria andAccountrangeNotLike(String value) {
            addCriterion("accountRange not like", value, "accountrange");
            return (Criteria) this;
        }

        public Criteria andAccountrangeIn(List<String> values) {
            addCriterion("accountRange in", values, "accountrange");
            return (Criteria) this;
        }

        public Criteria andAccountrangeNotIn(List<String> values) {
            addCriterion("accountRange not in", values, "accountrange");
            return (Criteria) this;
        }

        public Criteria andAccountrangeBetween(String value1, String value2) {
            addCriterion("accountRange between", value1, value2, "accountrange");
            return (Criteria) this;
        }

        public Criteria andAccountrangeNotBetween(String value1, String value2) {
            addCriterion("accountRange not between", value1, value2, "accountrange");
            return (Criteria) this;
        }

        public Criteria andStartdateIsNull() {
            addCriterion("startDate is null");
            return (Criteria) this;
        }

        public Criteria andStartdateIsNotNull() {
            addCriterion("startDate is not null");
            return (Criteria) this;
        }

        public Criteria andStartdateEqualTo(Date value) {
            addCriterion("startDate =", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotEqualTo(Date value) {
            addCriterion("startDate <>", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateGreaterThan(Date value) {
            addCriterion("startDate >", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateGreaterThanOrEqualTo(Date value) {
            addCriterion("startDate >=", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateLessThan(Date value) {
            addCriterion("startDate <", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateLessThanOrEqualTo(Date value) {
            addCriterion("startDate <=", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateIn(List<Date> values) {
            addCriterion("startDate in", values, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotIn(List<Date> values) {
            addCriterion("startDate not in", values, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateBetween(Date value1, Date value2) {
            addCriterion("startDate between", value1, value2, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotBetween(Date value1, Date value2) {
            addCriterion("startDate not between", value1, value2, "startdate");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNull() {
            addCriterion("endDate is null");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNotNull() {
            addCriterion("endDate is not null");
            return (Criteria) this;
        }

        public Criteria andEnddateEqualTo(Date value) {
            addCriterion("endDate =", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotEqualTo(Date value) {
            addCriterion("endDate <>", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThan(Date value) {
            addCriterion("endDate >", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThanOrEqualTo(Date value) {
            addCriterion("endDate >=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThan(Date value) {
            addCriterion("endDate <", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThanOrEqualTo(Date value) {
            addCriterion("endDate <=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateIn(List<Date> values) {
            addCriterion("endDate in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotIn(List<Date> values) {
            addCriterion("endDate not in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateBetween(Date value1, Date value2) {
            addCriterion("endDate between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotBetween(Date value1, Date value2) {
            addCriterion("endDate not between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCatalogsIsNull() {
            addCriterion("catalogs is null");
            return (Criteria) this;
        }

        public Criteria andCatalogsIsNotNull() {
            addCriterion("catalogs is not null");
            return (Criteria) this;
        }

        public Criteria andCatalogsEqualTo(String value) {
            addCriterion("catalogs =", value, "catalogs");
            return (Criteria) this;
        }

        public Criteria andCatalogsNotEqualTo(String value) {
            addCriterion("catalogs <>", value, "catalogs");
            return (Criteria) this;
        }

        public Criteria andCatalogsGreaterThan(String value) {
            addCriterion("catalogs >", value, "catalogs");
            return (Criteria) this;
        }

        public Criteria andCatalogsGreaterThanOrEqualTo(String value) {
            addCriterion("catalogs >=", value, "catalogs");
            return (Criteria) this;
        }

        public Criteria andCatalogsLessThan(String value) {
            addCriterion("catalogs <", value, "catalogs");
            return (Criteria) this;
        }

        public Criteria andCatalogsLessThanOrEqualTo(String value) {
            addCriterion("catalogs <=", value, "catalogs");
            return (Criteria) this;
        }

        public Criteria andCatalogsLike(String value) {
            addCriterion("catalogs like", value, "catalogs");
            return (Criteria) this;
        }

        public Criteria andCatalogsNotLike(String value) {
            addCriterion("catalogs not like", value, "catalogs");
            return (Criteria) this;
        }

        public Criteria andCatalogsIn(List<String> values) {
            addCriterion("catalogs in", values, "catalogs");
            return (Criteria) this;
        }

        public Criteria andCatalogsNotIn(List<String> values) {
            addCriterion("catalogs not in", values, "catalogs");
            return (Criteria) this;
        }

        public Criteria andCatalogsBetween(String value1, String value2) {
            addCriterion("catalogs between", value1, value2, "catalogs");
            return (Criteria) this;
        }

        public Criteria andCatalogsNotBetween(String value1, String value2) {
            addCriterion("catalogs not between", value1, value2, "catalogs");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeIsNull() {
            addCriterion("discountType is null");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeIsNotNull() {
            addCriterion("discountType is not null");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeEqualTo(String value) {
            addCriterion("discountType =", value, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeNotEqualTo(String value) {
            addCriterion("discountType <>", value, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeGreaterThan(String value) {
            addCriterion("discountType >", value, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeGreaterThanOrEqualTo(String value) {
            addCriterion("discountType >=", value, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeLessThan(String value) {
            addCriterion("discountType <", value, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeLessThanOrEqualTo(String value) {
            addCriterion("discountType <=", value, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeLike(String value) {
            addCriterion("discountType like", value, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeNotLike(String value) {
            addCriterion("discountType not like", value, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeIn(List<String> values) {
            addCriterion("discountType in", values, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeNotIn(List<String> values) {
            addCriterion("discountType not in", values, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeBetween(String value1, String value2) {
            addCriterion("discountType between", value1, value2, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscounttypeNotBetween(String value1, String value2) {
            addCriterion("discountType not between", value1, value2, "discounttype");
            return (Criteria) this;
        }

        public Criteria andDiscountIsNull() {
            addCriterion("discount is null");
            return (Criteria) this;
        }

        public Criteria andDiscountIsNotNull() {
            addCriterion("discount is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountEqualTo(BigDecimal value) {
            addCriterion("discount =", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotEqualTo(BigDecimal value) {
            addCriterion("discount <>", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountGreaterThan(BigDecimal value) {
            addCriterion("discount >", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discount >=", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountLessThan(BigDecimal value) {
            addCriterion("discount <", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discount <=", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountIn(List<BigDecimal> values) {
            addCriterion("discount in", values, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotIn(List<BigDecimal> values) {
            addCriterion("discount not in", values, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount between", value1, value2, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount not between", value1, value2, "discount");
            return (Criteria) this;
        }

        public Criteria andMinpriceIsNull() {
            addCriterion("minprice is null");
            return (Criteria) this;
        }

        public Criteria andMinpriceIsNotNull() {
            addCriterion("minprice is not null");
            return (Criteria) this;
        }

        public Criteria andMinpriceEqualTo(BigDecimal value) {
            addCriterion("minprice =", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceNotEqualTo(BigDecimal value) {
            addCriterion("minprice <>", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceGreaterThan(BigDecimal value) {
            addCriterion("minprice >", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("minprice >=", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceLessThan(BigDecimal value) {
            addCriterion("minprice <", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("minprice <=", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceIn(List<BigDecimal> values) {
            addCriterion("minprice in", values, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceNotIn(List<BigDecimal> values) {
            addCriterion("minprice not in", values, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("minprice between", value1, value2, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("minprice not between", value1, value2, "minprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceIsNull() {
            addCriterion("maxprice is null");
            return (Criteria) this;
        }

        public Criteria andMaxpriceIsNotNull() {
            addCriterion("maxprice is not null");
            return (Criteria) this;
        }

        public Criteria andMaxpriceEqualTo(BigDecimal value) {
            addCriterion("maxprice =", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceNotEqualTo(BigDecimal value) {
            addCriterion("maxprice <>", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceGreaterThan(BigDecimal value) {
            addCriterion("maxprice >", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("maxprice >=", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceLessThan(BigDecimal value) {
            addCriterion("maxprice <", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("maxprice <=", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceIn(List<BigDecimal> values) {
            addCriterion("maxprice in", values, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceNotIn(List<BigDecimal> values) {
            addCriterion("maxprice not in", values, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("maxprice between", value1, value2, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("maxprice not between", value1, value2, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountIsNull() {
            addCriterion("maxSellCount is null");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountIsNotNull() {
            addCriterion("maxSellCount is not null");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountEqualTo(Integer value) {
            addCriterion("maxSellCount =", value, "maxsellcount");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountNotEqualTo(Integer value) {
            addCriterion("maxSellCount <>", value, "maxsellcount");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountGreaterThan(Integer value) {
            addCriterion("maxSellCount >", value, "maxsellcount");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountGreaterThanOrEqualTo(Integer value) {
            addCriterion("maxSellCount >=", value, "maxsellcount");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountLessThan(Integer value) {
            addCriterion("maxSellCount <", value, "maxsellcount");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountLessThanOrEqualTo(Integer value) {
            addCriterion("maxSellCount <=", value, "maxsellcount");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountIn(List<Integer> values) {
            addCriterion("maxSellCount in", values, "maxsellcount");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountNotIn(List<Integer> values) {
            addCriterion("maxSellCount not in", values, "maxsellcount");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountBetween(Integer value1, Integer value2) {
            addCriterion("maxSellCount between", value1, value2, "maxsellcount");
            return (Criteria) this;
        }

        public Criteria andMaxsellcountNotBetween(Integer value1, Integer value2) {
            addCriterion("maxSellCount not between", value1, value2, "maxsellcount");
            return (Criteria) this;
        }

        public Criteria andProductidIsNull() {
            addCriterion("productID is null");
            return (Criteria) this;
        }

        public Criteria andProductidIsNotNull() {
            addCriterion("productID is not null");
            return (Criteria) this;
        }

        public Criteria andProductidEqualTo(String value) {
            addCriterion("productID =", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotEqualTo(String value) {
            addCriterion("productID <>", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThan(String value) {
            addCriterion("productID >", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThanOrEqualTo(String value) {
            addCriterion("productID >=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThan(String value) {
            addCriterion("productID <", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThanOrEqualTo(String value) {
            addCriterion("productID <=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLike(String value) {
            addCriterion("productID like", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotLike(String value) {
            addCriterion("productID not like", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidIn(List<String> values) {
            addCriterion("productID in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotIn(List<String> values) {
            addCriterion("productID not in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidBetween(String value1, String value2) {
            addCriterion("productID between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotBetween(String value1, String value2) {
            addCriterion("productID not between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andActivitytypeIsNull() {
            addCriterion("activityType is null");
            return (Criteria) this;
        }

        public Criteria andActivitytypeIsNotNull() {
            addCriterion("activityType is not null");
            return (Criteria) this;
        }

        public Criteria andActivitytypeEqualTo(String value) {
            addCriterion("activityType =", value, "activitytype");
            return (Criteria) this;
        }

        public Criteria andActivitytypeNotEqualTo(String value) {
            addCriterion("activityType <>", value, "activitytype");
            return (Criteria) this;
        }

        public Criteria andActivitytypeGreaterThan(String value) {
            addCriterion("activityType >", value, "activitytype");
            return (Criteria) this;
        }

        public Criteria andActivitytypeGreaterThanOrEqualTo(String value) {
            addCriterion("activityType >=", value, "activitytype");
            return (Criteria) this;
        }

        public Criteria andActivitytypeLessThan(String value) {
            addCriterion("activityType <", value, "activitytype");
            return (Criteria) this;
        }

        public Criteria andActivitytypeLessThanOrEqualTo(String value) {
            addCriterion("activityType <=", value, "activitytype");
            return (Criteria) this;
        }

        public Criteria andActivitytypeLike(String value) {
            addCriterion("activityType like", value, "activitytype");
            return (Criteria) this;
        }

        public Criteria andActivitytypeNotLike(String value) {
            addCriterion("activityType not like", value, "activitytype");
            return (Criteria) this;
        }

        public Criteria andActivitytypeIn(List<String> values) {
            addCriterion("activityType in", values, "activitytype");
            return (Criteria) this;
        }

        public Criteria andActivitytypeNotIn(List<String> values) {
            addCriterion("activityType not in", values, "activitytype");
            return (Criteria) this;
        }

        public Criteria andActivitytypeBetween(String value1, String value2) {
            addCriterion("activityType between", value1, value2, "activitytype");
            return (Criteria) this;
        }

        public Criteria andActivitytypeNotBetween(String value1, String value2) {
            addCriterion("activityType not between", value1, value2, "activitytype");
            return (Criteria) this;
        }

        public Criteria andExchangescoreIsNull() {
            addCriterion("exchangeScore is null");
            return (Criteria) this;
        }

        public Criteria andExchangescoreIsNotNull() {
            addCriterion("exchangeScore is not null");
            return (Criteria) this;
        }

        public Criteria andExchangescoreEqualTo(Integer value) {
            addCriterion("exchangeScore =", value, "exchangescore");
            return (Criteria) this;
        }

        public Criteria andExchangescoreNotEqualTo(Integer value) {
            addCriterion("exchangeScore <>", value, "exchangescore");
            return (Criteria) this;
        }

        public Criteria andExchangescoreGreaterThan(Integer value) {
            addCriterion("exchangeScore >", value, "exchangescore");
            return (Criteria) this;
        }

        public Criteria andExchangescoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("exchangeScore >=", value, "exchangescore");
            return (Criteria) this;
        }

        public Criteria andExchangescoreLessThan(Integer value) {
            addCriterion("exchangeScore <", value, "exchangescore");
            return (Criteria) this;
        }

        public Criteria andExchangescoreLessThanOrEqualTo(Integer value) {
            addCriterion("exchangeScore <=", value, "exchangescore");
            return (Criteria) this;
        }

        public Criteria andExchangescoreIn(List<Integer> values) {
            addCriterion("exchangeScore in", values, "exchangescore");
            return (Criteria) this;
        }

        public Criteria andExchangescoreNotIn(List<Integer> values) {
            addCriterion("exchangeScore not in", values, "exchangescore");
            return (Criteria) this;
        }

        public Criteria andExchangescoreBetween(Integer value1, Integer value2) {
            addCriterion("exchangeScore between", value1, value2, "exchangescore");
            return (Criteria) this;
        }

        public Criteria andExchangescoreNotBetween(Integer value1, Integer value2) {
            addCriterion("exchangeScore not between", value1, value2, "exchangescore");
            return (Criteria) this;
        }

        public Criteria andMingroupcountIsNull() {
            addCriterion("minGroupCount is null");
            return (Criteria) this;
        }

        public Criteria andMingroupcountIsNotNull() {
            addCriterion("minGroupCount is not null");
            return (Criteria) this;
        }

        public Criteria andMingroupcountEqualTo(Integer value) {
            addCriterion("minGroupCount =", value, "mingroupcount");
            return (Criteria) this;
        }

        public Criteria andMingroupcountNotEqualTo(Integer value) {
            addCriterion("minGroupCount <>", value, "mingroupcount");
            return (Criteria) this;
        }

        public Criteria andMingroupcountGreaterThan(Integer value) {
            addCriterion("minGroupCount >", value, "mingroupcount");
            return (Criteria) this;
        }

        public Criteria andMingroupcountGreaterThanOrEqualTo(Integer value) {
            addCriterion("minGroupCount >=", value, "mingroupcount");
            return (Criteria) this;
        }

        public Criteria andMingroupcountLessThan(Integer value) {
            addCriterion("minGroupCount <", value, "mingroupcount");
            return (Criteria) this;
        }

        public Criteria andMingroupcountLessThanOrEqualTo(Integer value) {
            addCriterion("minGroupCount <=", value, "mingroupcount");
            return (Criteria) this;
        }

        public Criteria andMingroupcountIn(List<Integer> values) {
            addCriterion("minGroupCount in", values, "mingroupcount");
            return (Criteria) this;
        }

        public Criteria andMingroupcountNotIn(List<Integer> values) {
            addCriterion("minGroupCount not in", values, "mingroupcount");
            return (Criteria) this;
        }

        public Criteria andMingroupcountBetween(Integer value1, Integer value2) {
            addCriterion("minGroupCount between", value1, value2, "mingroupcount");
            return (Criteria) this;
        }

        public Criteria andMingroupcountNotBetween(Integer value1, Integer value2) {
            addCriterion("minGroupCount not between", value1, value2, "mingroupcount");
            return (Criteria) this;
        }

        public Criteria andTuanpriceIsNull() {
            addCriterion("tuanPrice is null");
            return (Criteria) this;
        }

        public Criteria andTuanpriceIsNotNull() {
            addCriterion("tuanPrice is not null");
            return (Criteria) this;
        }

        public Criteria andTuanpriceEqualTo(BigDecimal value) {
            addCriterion("tuanPrice =", value, "tuanprice");
            return (Criteria) this;
        }

        public Criteria andTuanpriceNotEqualTo(BigDecimal value) {
            addCriterion("tuanPrice <>", value, "tuanprice");
            return (Criteria) this;
        }

        public Criteria andTuanpriceGreaterThan(BigDecimal value) {
            addCriterion("tuanPrice >", value, "tuanprice");
            return (Criteria) this;
        }

        public Criteria andTuanpriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("tuanPrice >=", value, "tuanprice");
            return (Criteria) this;
        }

        public Criteria andTuanpriceLessThan(BigDecimal value) {
            addCriterion("tuanPrice <", value, "tuanprice");
            return (Criteria) this;
        }

        public Criteria andTuanpriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("tuanPrice <=", value, "tuanprice");
            return (Criteria) this;
        }

        public Criteria andTuanpriceIn(List<BigDecimal> values) {
            addCriterion("tuanPrice in", values, "tuanprice");
            return (Criteria) this;
        }

        public Criteria andTuanpriceNotIn(List<BigDecimal> values) {
            addCriterion("tuanPrice not in", values, "tuanprice");
            return (Criteria) this;
        }

        public Criteria andTuanpriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tuanPrice between", value1, value2, "tuanprice");
            return (Criteria) this;
        }

        public Criteria andTuanpriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tuanPrice not between", value1, value2, "tuanprice");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonIsNull() {
            addCriterion("hasBuyGroupPerson is null");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonIsNotNull() {
            addCriterion("hasBuyGroupPerson is not null");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonEqualTo(Integer value) {
            addCriterion("hasBuyGroupPerson =", value, "hasbuygroupperson");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonNotEqualTo(Integer value) {
            addCriterion("hasBuyGroupPerson <>", value, "hasbuygroupperson");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonGreaterThan(Integer value) {
            addCriterion("hasBuyGroupPerson >", value, "hasbuygroupperson");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonGreaterThanOrEqualTo(Integer value) {
            addCriterion("hasBuyGroupPerson >=", value, "hasbuygroupperson");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonLessThan(Integer value) {
            addCriterion("hasBuyGroupPerson <", value, "hasbuygroupperson");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonLessThanOrEqualTo(Integer value) {
            addCriterion("hasBuyGroupPerson <=", value, "hasbuygroupperson");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonIn(List<Integer> values) {
            addCriterion("hasBuyGroupPerson in", values, "hasbuygroupperson");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonNotIn(List<Integer> values) {
            addCriterion("hasBuyGroupPerson not in", values, "hasbuygroupperson");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonBetween(Integer value1, Integer value2) {
            addCriterion("hasBuyGroupPerson between", value1, value2, "hasbuygroupperson");
            return (Criteria) this;
        }

        public Criteria andHasbuygrouppersonNotBetween(Integer value1, Integer value2) {
            addCriterion("hasBuyGroupPerson not between", value1, value2, "hasbuygroupperson");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}